package com.itheima.day08.myGenerictity.test3;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list = setArrayList(list,"aaa","bbb","ccc","ddd");
        System.out.println(list);
    }
    public static <T> ArrayList setArrayList(ArrayList<T> list, T t1, T t2, T t3, T t4){
        list.add(t1);
        list.add(t2);
        list.add(t3);
        list.add(t4);
        return list;
    }
}
